package com.jk.demos.service.serviceImpl;

import com.jk.demos.entity.Article;
import com.jk.demos.mapper.ArticleMapper;
import com.jk.demos.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ArticleServiceImpl implements ArticleService {
    @Autowired ArticleMapper articleMapper;
    @Override
    public Article getBYId(Integer id) {
        System.out.println(articleMapper.findbyid(id));
        return articleMapper.findbyid(id);
    }
}
